<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Login</title>
</head>
<body>
<h1>Login</h1>

<!-- 登录表单 -->
<form action="/login" method="post">
  <label for="username">Username:</label>
  <input type="text" id="username" name="username">
  <button type="submit">Login</button>
</form>

<!-- 登录信息列表 -->
<h2>Login Information</h2>
<table>
  <tr>
    <th>ID</th>
    <th>Username</th>
    <th>IP</th>
    <th>Login Time</th>
  </tr>
  <tr th:each="loginInfo : ${loginInfos}">
    <td th:text="${loginInfo.id}"></td>
    <td th:text="${loginInfo.username}"></td>
    <td th:text="${loginInfo.ip}"></td>
    <td th:text="${loginInfo.loginTime}"></td>
  </tr>
</table>
</body>
</html>
